package com.java.learning.demo.common;

public enum ReturnCode {
    SUCCESS(0, "操作成功"),
    FAILED(999, "操作失败"),
    /**
     * 公共异常 1000-1500
     **/
    EXCEPTION(1000, "网络开小差了,请稍后再试");
    private int code;
    private String description;

    ReturnCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
